package com.neuedu.service.impl;


import com.neuedu.dao.DoctorPositionDao;
import com.neuedu.dao.UserCategoryDao;
import com.neuedu.factory.ClassFactory;
import com.neuedu.service.UserCategoryService;

import java.util.List;
import java.util.Map;


public class UserCategoryServiceImpl implements UserCategoryService {

    @Override
    public List<Map<String, Object>> getAllUserCategory() {
        UserCategoryDao dcd = (UserCategoryDao) ClassFactory.createObj("UserCategoryDao");
        String sql = "SELECT * FROM usercategory";
        return dcd.getAllDoctorPositionService(sql);
    }
}
